<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
</head>

<body>

</body>
<script>
    function addEvement(element, type, handler) {
        // 在此输入你的代码，实现预定功能
    }

    function addEvent(ele, type, handler) {
        if ("addEventListener" in window) {
            ele.addEventListener(type, handler, false);
        } else if ("attachEvent" in window) {
            ele.attachEvent('on' + type, function () {
                handler.call(ele);
            });
        } else {
            ele["on" + type] = handler;
        };
    }

</script>

</html>